<?php
	
$themename="mbo";   

define('MBO_LIB', TEMPLATEPATH . '/lib');  

define('MBO_FUNCTIONS', MBO_LIB . '/functions');

define('MBO_WIDGETS', MBO_LIB . '/functions/widgets');

  

    
	// Add RSS links to <head> section
	automatic_feed_links();
	
	// Load jQuery
	if ( !is_admin() ) {
	   wp_deregister_script('jquery');
	   wp_register_script('jquery', get_bloginfo('template_directory')."/js/jquery.min.js");
	   wp_enqueue_script('jquery');
	}
	
	// Clean up the <head>
	function removeHeadLinks() {
    	remove_action('wp_head', 'rsd_link');
    	remove_action('wp_head', 'wlwmanifest_link');
    }
    add_action('init', 'removeHeadLinks');
    remove_action('wp_head', 'wp_generator');
    

    /*  menu */
	if ( function_exists( 'add_theme_support' ) ) { 
	add_theme_support('menus');
    }
	
	
	if (function_exists('register_nav_menus')) {
		register_nav_menus(
			array(
				'menu_header' => 'Main menu header',
				'menu_footer' => 'Menu footer'
			)
		);
	}
	/* support thumbnails */
	if ( function_exists( 'add_theme_support' ) ) { 
	add_theme_support( 'post-thumbnails' );
    }

    require_once(MBO_WIDGETS . '/widgets.php');
    require_once(MBO_WIDGETS . '/mbo_video_widget.php');
    
    
	
	
	

?>